package com.aididi;

import com.alibaba.csp.sentinel.annotation.aspectj.SentinelResourceAspect;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableFeignClients({"com.aididi"})
@EnableDiscoveryClient
@RefreshScope
public class NacosConsumerFeignSentinelApplication {

	public static void main(String[] args) {
		SpringApplication.run(NacosConsumerFeignSentinelApplication.class, args);
	}

	@Bean
	public SentinelResourceAspect sentinelResourceAspect(){
		return new SentinelResourceAspect();
	}

}
